		$(function(){
				$("#txtVerifyCode").blur(function(){
				//all.code=false;
				var txtCode=$("#txtVerifyCode").val();
				if(txtCode.length==0){
				$("#numberCode").html("验证码不能为空！");
				return;
			}
					//alert("lklllllllll");
					$.ajax({
					url:"check_code.action",
					type:"post",
					data:"number="+$("#txtVerifyCode").val(),
					success:function(data){
						//alert("kkkkkkkkk");
						$("#numberCode").html(data.message);
						}
					});
				}); 

				$("#email").keyup(function(){
				$('#btnClientRegister').attr("disabled","true");
				var texEmail=$("#email").val();
				var reg=/^[a-z]([a-z0-9]*[-_]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\.][a-z]{2,3}([\.][a-z]{2})?$/i;
				if(texEmail.length==0){
				$("#email_info").text("邮箱不能为空！");
				$('#btnClientRegister').attr("disabled","true");
				return;
				}
				if(!reg.test(texEmail)){
				$("#email_info").text("输入的邮箱不符合！");
				$('#btnClientRegister').attr("disabled","true");
				}else{
				$("#email_info").text("正在验证是否通过。。。。");
				
				$.ajax({
					url:"check_email.action",
					type:"post",
					data:{email:texEmail},
					success:function(datacom){
					var coom=datacom.fax;
					if("true"==coom){
					$("#email_info").text("输入的邮箱已存在！");
					
					}else{
					$("#email_info").css("color","green");
					$("#email_info").text("邮箱可用!");
					$('#btnClientRegister').attr("disabled","");
							}					
						}
					});
				}
				
				});

				$("#txtNickName").blur(function(){
				$('#btnClientRegister').attr("disabled","true");
				var texName=$("#txtNickName").val();
				if(texName.length==0){
				$("#name_info").text("用户名不能为空！");
				return;
				}
				 if(texName.length<4||texName.length>20){
					$("#name_info").text("你输入的格式不符合！");
					$('#btnClientRegister').attr("disabled","true");
					return;
				}else{
					$("#name_info").text("");
					$('#btnClientRegister').attr("disabled","");
					return;
				}
				});

				$("#texPassword").blur(function(){
				$('#btnClientRegister').attr("disabled","true");
				var pwd=$("#texPassword").val();
				if(pwd.length==0){
				$("#password_info").text("密码不能为空!");
				$('#btnClientRegister').attr("disabled","true");
				return;
				}
				if(pwd.length<4||pwd.length>20){
				$("#password_info").text("输入的格式不符合!");
				return;
				}else{
				$("#password_info").text("");
				//$('#btnClientRegister').attr("disabled","");
				}
				
				});
			

			$("#txtRepeatPass").blur(function(){
			$('#btnClientRegister').attr("disabled","true");
				var repwd=$("#txtRepeatPass").val();
				var pwd=$("#texPassword").val();
				if(repwd.length==0){
					$('#password1_info').text("不能为空");
					$('#btnClientRegister').attr("disabled","true");
					return;				
				}
				if(repwd==pwd){
				$("#password1_info").text("");
				$('#btnClientRegister').attr("disabled","");
				
				}else{
				$("#password1_info").text("输入的密码不一至!");
				return;
				}
				
			});
			
		});